package com.sfang.common.base.annotations;

import java.lang.annotation.*;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface AggregationMappingAnnotation {
    String name() default "";
    String alias() default "";
    /**
     * 0-需要进行groupBy
     * 1-计算sum
     * 2-计算max
     * 3-计算min
     * 4-计算avg
     *
     * @return
     */
    int type() default 0;
    int groupByOrder() default 0;
    String dataType() default "String";
    String termMappingAnnotations() default "";
    int subType() default 0;
    int aggregationType() default 0;
}
